{include(head.tpl)}
<body>
<div class="wrapper-content">
    <div class="animated fadeInDown wrap">
        <table class="table_value table"><!--草稿、待审、驳回、通过、发布'--->
            <tr>
              <th>ID</th>
              <th>唯一标识</th>
              <th>所属栏目</th>
              <th>编辑用户</th>
              <th>标题</th>
              <th>稿件状态</th>
              <th>文件个数</th>
              <th>点击次数</th>
              <th>点赞数</th>
              <th>评论数</th>
              <th>创建时间</th>
              <th>操作</th>
            </tr>
            {foreach from=listarr item=vo}
                <tr>
                  <td>{$vo.id}</td>
                  <td>{$vo.programid}</td>
                  <td>{$vo.columnid}</td>
                  <td>{$vo.userid}</td>
                  <td>{$vo.title}</td>
                  <td>{$vo.status}</td>
                  <td>{$vo.files}</td>
                  <td>{$vo.hits}</td>
                  <td>{$vo.diggs}</td>
                  <td>{$vo.comments}</td>
                  <td><?php echo date('Y-m-d H:i:s',$vo['addtime']) ;?></td>
                  <td>操作</td>
                </tr>
            {/foreach}
        </table>
        <div class="page">{pageshow}</div>
    </div>
</div>

<script>
function ajaxpage(page){
    var url='page='+page;
    _ajaxs.post('{mothedurl}',url,function _return(hdata){
        var pageh=pagehead();
        var pagec=pagecontent(hdata);
        $('.table_value').html('');
        $('.table_value').html(pageh+pagec);
        $('.page').html('');
        $('.page').html(hdata.data.pageshow);
    })
}
function pagehead(){
    var pageheadhtml='<tr>\
      <th>ID</th>\
      <th>唯一标识</th>\
      <th>所属栏目</th>\
      <th>编辑用户</th>\
      <th>标题</th>\
      <th>稿件状态</th>\
      <th>文件个数</th>\
      <th>点击次数</th>\
      <th>点赞数</th>\
      <th>评论数</th>\
      <th>创建时间</th>\
      <th>操作</th>\
    </tr>';
    return pageheadhtml;
}
function pagecontent(hdata){
    var list=hdata.data.list;
    var pagecontenthtml='';
    if(list!=''){
      for(i=0;i<list.length;i++){
        pagecontenthtml+='  <tr>\
            <td>'+list[i]['id']+'</td>\
            <td>'+list[i]['username']+'</td>\
            <td>'+list[i]['operate']+'</td>\
            <td>'+list[i]['detail']+'</td>\
            <td>'+list[i]['device']+'</td>\
            <td>'+_myTime.UnixToDate(list[i]['logtime'],true,8)+'</td>\
          </tr>';
      }
    }
    return pagecontenthtml;

}
</script>
</body>
</html>
